/*
 * @Author: YuHao
 * @Date: 2022-04-14 10:33:14
 * @LastEditTime: 2022-04-14 13:24:53
 * @LastEditors: YuHao
 * @Description: 
 * @FilePath: \vben-admin\src\components\Table\src\components\editable\helper.ts
 * Copyright (c) 2022 by 弗斯特机电设备有限公司, All Rights Reserved. 
 */
import { ComponentType } from '../../types/componentType';


/**
 * @description: 生成placeholder
 */
export function createPlaceholderMessage(component: ComponentType) {
  if (component.includes('Input')) {
    return '请输入';
  }
  if (component.includes('Picker')) {
    return '请选择';
  }

  if (
    component.includes('Select') ||
    component.includes('Checkbox') ||
    component.includes('Radio') ||
    component.includes('Switch') ||
    component.includes('DatePicker') ||
    component.includes('TimePicker')
  ) {
    return '请选择';
  }
  return '';
}
